﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="InmobiliariaWeb._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Inmobiliaria - Principal</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:100%; text-align:center; ">
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <p style="font-family: Verdana; font-size: 20px">Reservas Online</p></td>
                <td>
                                <asp:Label ID="lblBienvenido" runat="server" Font-Names="Verdana" 
                                    Font-Size="Small" Text="Bienvenido" Visible="False"></asp:Label>
&nbsp;<asp:Label ID="lblNombre" runat="server" Font-Names="Verdana" Font-Size="Small" 
                        Visible="False"></asp:Label>
                            </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: right">
                    &nbsp;</td>
                <td align="center">
                    <table style="text-align:center;">
                        <tr>
                            <td>
                    <asp:Label ID="lblCliente" runat="server" Text="Cliente:" Font-Names="Verdana" 
                                    Font-Size="Small"></asp:Label>
                            </td>
                            <td>
                    <asp:TextBox ID="txtCliente" runat="server" ></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                    <asp:Label ID="lblContraseña" runat="server" Text="Contraseña:" Font-Names="Verdana" 
                                    Font-Size="Small"></asp:Label>
                            </td>
                            <td>
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                            </td>
                            <td>
                    <asp:Button ID="btnIngresar" runat="server" onclick="btnIngresar_Click" 
                        Text="Ingresar" Font-Names="Verdana" Font-Size="Small" />
                            </td>
                        </tr>
                        </table>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: right">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td style="text-align: left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td align="center" style="vertical-align: middle; ">
                    <asp:GridView ID="grvDisponibles" runat="server" 
                        onrowcommand="grvDisponibles_RowCommand" 
                        onselectedindexchanged="grvDisponibles_SelectedIndexChanged" 
                        Visible="False" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" 
                        BorderWidth="1px" CellPadding="3" Font-Names="Verdana" Font-Size="Small" 
                        GridLines="Horizontal">
                        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                        <Columns>
                            <asp:ButtonField ButtonType="Button" CommandName="Reservar" HeaderText="Acción" 
                                Text="Reservar" />
                        </Columns>
                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                        <AlternatingRowStyle BackColor="#F7F7F7" />
                    </asp:GridView>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Label ID="lblRespuesta" runat="server" ForeColor="Red" 
                        Font-Names="Verdana" Font-Size="Small"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <p style="font-family: @Verdana; font-size:small;">NOTA: Reservas online, le permite reservar una propiedad por 24 horas.<br>Antes de este 
                    tiempo debe acercarse a una sucursal para abonar el monto de reserva 
                    correspondiente. <br>Muchas gracias.</p>
                    </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
